// import { PaginationProps } from '@arco-design/web-react/es/Pagination/pagination';
import { LOGIN } from './actionTypes';

const initialState = {
  userName: '',
};

export interface UserLoginState {
  userName?: string;
}

export default function(state = initialState, action) {
  switch (action.type) {
    case LOGIN: {
      const { userName } = action.payload;
      console.log({ userName });
      return {
        ...state,
        userName,
      };
    }
    default:
      return state;
  }
}
